package thinkinjava1.ch10;

import java.io.*;

/**
 * Created by BobbyGu on 2017/2/23.
 */
public class PrintFile extends PrintStream {
    public PrintFile(String filename)
            throws IOException {
        super(new BufferedOutputStream(
                new FileOutputStream(filename)));
    }

    public PrintFile(File file)
            throws IOException {
        this(file.getPath());
    }
}
